﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

using YouHP.Model;

namespace YouHP.IDAL
{
    public interface IMessage
    {
        #region 短消息基本操作
        bool CreateMessage(MessageInfo Pm);
        bool DeleteMessage(int[] pmitemid);
        #endregion

        #region 短消息列表
        MessageInfo GetMessage(int Pmid);
        List<MessageInfo> GetMessageListByUserId(int pageSize, int pageIndex, int uid,bool isTo, out int count);
        #endregion


        bool UpdatePmState(int pmId, int state);

        List<MessageInfo> GetMsgReplyList(int pageSize, int pageIndex, int msgid, out int count);

        int GetNewMessageCount(int uid);
    }
}
